package com.soft.javase.day01.practice;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/15
 */
public class Student {
    private String name;
    private int age;
    private String gender;

    public Student() {
    }

    public Student(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void show() {
        System.out.println("姓名：" + name + "\n" +
                "年龄：" + age + "\n" +
                "性别：" + gender);
    }

    public void study() {
        System.out.println(name+"在学习");
    }

}